<template>
    <a-layout-header style="background: #fff; padding: 0">
<!--        <menu-unfold-outlined v-if="collapsed" @click="openClose" class="trigger" />
        <menu-fold-outlined v-else @click="openClose" class="trigger" /> -->
        欢迎使用XH小工具
    </a-layout-header>
</template>
<script lang="ts">
import {
    MenuUnfoldOutlined,
    MenuFoldOutlined,
} from '@ant-design/icons-vue'
import { defineComponent, reactive, ref } from 'vue'
export default defineComponent({
    components: {
        MenuUnfoldOutlined,
        MenuFoldOutlined
    },
    setup() {
        let collapsed = ref<boolean>(false);
        let selectedKeys = ref<string[]>(['1']);
        const openClose = () => {
            console.log("点击折叠/展开");
            collapsed = !collapsed;
        }
        return {
            selectedKeys,
            collapsed, openClose
        };
    },
})
</script>
<style>
.trigger {
    float: left;
    font-size: 18px;
    line-height: 64px;
    padding: 0 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.trigger:hover {
    color: #1890ff;
}
</style>